<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/20 0020
 * Time: 上午 9:49
 */

namespace App\Validates\Xcx;


class UserController
{
    public function auth()
    {
        return [
            'rules' => [
                'mobile' => 'required|confirm_mobile_not_change|confirm_rule:mobile_required',
                'code' => 'required|verify_code',
                'address'=>'required',
                'back'=>'required',
                'birthday'=>'required',
                'card'=>'required',
                'face'=>'required',
                'gender'=>'required',
                'nation'=>'required',
                'real_name'=>'required'
            ],
            'messages' => [
//                'mobile.required' => '请填写手机号',
                'code.required' => '请填写验证码',
                'code.verify_code' => '验证码不正确'
            ]
        ];
    }
    public function create()
    {
        return [
            'rules' => [
                'gname'=>'required',
                'name'=>'required',
                'area'=>'required',
                'x_desc'=>'required',
                'x_name'=>'required',
                'phone'=>'required',
                'code'=>'required|verify_code',
            ],
            'messages' => [
                'gname.required'=>'公司名称未填写',
                'name.required'=>'项目名称未填写',
                'area.required'=>'项目地址未填写',
                'x_desc.required'=>'项目概括未填写',
                'x_name.required'=>'项目负责人姓名未填写',
                'phone.required'=>'项目负责人电话未填写',
                'code.required'=>'验证码不能为空',
                'code.verify_code'=>'验证码不正确',
            ]
        ];
    }
}